import unittest

from General.Mapper import *


class RawDataMapperTest(unittest.TestCase):
    rawDataMapper = RawDataMapper()

    def otest_addRawData(self):
        print(self.rawDataMapper.addRawData(catchTime=datetime.datetime.now(), ranking=1, readCount=1000, topicId=1))

    def test_getRawData(self):
        print(self.rawDataMapper.getRawData(datetime.datetime(2020, 12, 10, 12, 0, 0), datetime.datetime.now()))

    def otest_updateRawDate(self):
        self.rawDataMapper.updateRawData(87, 0)
